package com.tjshop.android.model.tj.json;

import java.io.Serializable;

import org.json.JSONArray;
import org.json.JSONObject;

import com.tjshop.android.model.BaseObject;

public class Banner extends BaseObject implements Serializable {

	private String adName;// "adname":"新陇海",
	private String adlink;// "adlink":"http://shop.511511.com/goods.php?id=594",
	private String path;// "adcode":"1419894247319785423.jpg",

	// "path":"shop.511511.com/data/afficheimg/"

	public void parse(JSONObject banner) {
		setAdlink(getString(banner, "adlink"));
		setAdName(getString(banner, "adname"));
		setPath("http://" + getString(banner, "path")
				+ getString(banner, "adcode"));
	}

	public String getAdName() {
		return adName;
	}

	public void setAdName(String adName) {
		this.adName = adName;
	}

	public String getAdlink() {
		return adlink;
	}

	public void setAdlink(String adlink) {
		this.adlink = adlink;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	@Override
	public void parse(JSONArray data) {

	}

}
